﻿<%@ Page  MasterPageFile="~/Site.Master" Language="C#" AutoEventWireup="true" CodeBehind="ProductDetail.aspx.cs" Inherits="RabbitManage.UI.ProductDetail" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    
    <% if (product == null)
       { %>
          什么也没有找到   ╮(╯_╰)╭ 
    <% }
       else
       { %>

    <section class="contact">
                
    <table>
        <tr>
            <td>
                <img src="<%=product.MainImage %>" width="350" height="350"/>
            </td>
            <td style="width: 650px;">

                <div id="J_Title" class="tb-title"  >
                    <h3 class="tb-main-title" >
                        <%=product.Title %>
                    </h3>
                    <p class="tb-subtitle">
                        <%=product.SubTitle %>
                    </p>

                </div>
                    
                <table>
                    <tr>
                        <td>配送:</td>
                        <td><%=shop.Location.Province %><%=shop.Location.City %> 至 </td>
                    </tr>
                    <tr>
                        <td style="width: 60px;">运费:</td>
                        <td><%=shop.DiliveryCostDescription %></td>
                    </tr>
                    <tr>
                        <td>价格:</td>
                        <td><%=product.PricePerUnit %></td>
                    </tr>
                    <tr>
                        <td>数量:</td>
                        <td><a onclick="updatenum('sub');" href="javascript:void(0);">-</a>
                            <input type="text" value="1" name="quantity" style="width: 30px; text-align: right;"/>
                            <a onclick="updatenum('add');" href="javascript:void(0);">+</a> 件（库存<%=product.Quantity %>件）
                        </td>
                    </tr>
                </table>
                    
                <table>
                    <tr>
                        <td>
                            <div style="margin-right: 9px; border-radius: 2px; border-style: solid; border-width: 1px;
cursor: pointer; display: block; font-family: Hiragino Sans GB,microsoft yahei,sans-serif;
font-size: 16px;
height: 38px;
line-height: 38px;
text-align: center;
width: 134px;
background: #ffe4d0 none repeat scroll 0 0;
border-color: #f0cab6;" >
                                <a data-spm-click="gostr=/tbdetail;locaid=d1" data-addfastbuy="true" 
                                 title="点击此按钮，到下一步确认购买信息"
                                    href="javascript:;" 
                                    style="color: #e5511d;">
                                    立即购买
                                </a>
                            </div>
                        </td>
                        <td>
                            <div style="width: 173px;background: #f40 none repeat scroll 0 0;
border-color: #f40;

border-radius: 2px;
border-style: solid;
border-width: 1px;
cursor: pointer;
display: block;
font-family: Hiragino Sans GB,microsoft yahei,sans-serif;
font-size: 16px;
height: 38px;
line-height: 38px;
text-align: center;">
                                <a data-spm-click="gostr=/tbdetail;locaid=d2" title="加入购物车" href="javascript:AddToCart();"
                                    style="color: #fff;" >
                                    <i  style=" font-size: 18px;
            font-style: normal;
            font-weight: 400;
            margin-right: 10px;
            vertical-align: bottom;">ŭ</i>
                                    加入购物车
                                </a>
                            </div>
                        </td>
                    </tr>
                </table>


            </td>
        </tr>
    </table>

 
        <table>
            <tr>
                <td>Name:</td>
                <td><%=product.Name %></td>
                    
                <td>PricePerUnit:</td>
                <td><%=product.PricePerUnit %></td>
                    
                <td>NetWeight:</td>
                <td><%=product.NetWeight %></td>
            </tr>
        
            <tr>
                <td>GrossWeight:</td>
                <td><%=product.GrossWeight %></td>
                    
                <td>ProductionDate:</td>
                <td><%=product.ProductionDate %></td>
                    
                <td>Quantity:</td>
                <td><%=product.Quantity %></td>
            </tr>
        
            <tr>
                <td>description:</td>
            </tr>
                
        </table>


    <div>
            
        <%=product.Description %>
            
    </div>

    </section>
    
        <% } %>

</asp:Content>